<template>
  <el-header>
    <div>
      <img src="../../assets/lg1.png" alt="" />
      <span>择校宝</span>
    </div>
    <Search />
    <p class="exit" @click="logout">退出</p>
  </el-header>
</template>

<script>
import Search from  './Search'
export default {
  methods: {
    logout() {
      window.sessionStorage.clear();
      this.$router.push('/login');
    }
  },
  components: {
    Search
  }

}
</script>

<style lang="less" scoped>
.el-header {
  // width: 1200px;
  // margin: 0 auto;
  position: fixed;
  z-index: 99;
  width: 100%;
  background-color: #0f7fc9f7;
  display: flex;
  top: 0;
  text-align: center;
  justify-content: space-between;
  padding-left: 0;
  align-items: center;
  color: #fff;
  font-size: 20px;
  > div {
    display: flex;
    align-items: center;
    span {
      margin-left: 15px;
    }
    img {
      width: 61px;
      height: 56px;
    }
  }
  .exit{
    font-size: 14px;
    cursor: pointer;
  }
  .exit:hover {
     color: rgba(238, 238, 16, 0.672);
  }
}
</style>
